#@head() #@header()
<title>客户列表</title>
#@aside("custser")
<script type="text/javascript" src="#(path)/assets/js/jquery.tmpl.min.js"></script>
<style>
	.box-body{padding:5px !important}
</style>
<div class="content-wrapper">
	<section class="content">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 id="name" class="box-title"></h3>
            </div>
            <div class="box-body" style="background:#fafafa;min-height:200px;">
                <div style="margin:10px;" id ="contents"></div>
            </div>
          </div>
	</section>
</div>

#@footer()
<script type="text/javascript" src="#(path)/assets/plugins/liulan/js/viewer.min.js"></script>
<script>
$(document).ready(function(){
	var id = GetRequest(id);
	
	$.getJSON("/notice/info?token=#(session.token??)&id="+id.id, function(userinfo) {
		
		var datainfo = userinfo.data;
		$("#contents").html(datainfo.contents);
		$("#name").html(datainfo.name);
	});
});

function GetRequest() {  
   var url = location.search; //获取url中"?"符后的字串  
   var theRequest = new Object();  
   if (url.indexOf("?") != -1) {  
      var str = url.substr(1);  
      strs = str.split("&");  
      for(var i = 0; i < strs.length; i ++) {  
         theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);  
      }  
   }  
   return theRequest;  
}  
</script>


</body>
</html>

